Skip to content

Housekeeping: Remove unused molecules endpoints + others#1068

Merged
esoteric-ephemera merged 10 commits intomainfrom
limits
Mar 10, 2026
Merged

Housekeeping: Remove unused molecules endpoints + others#1068
esoteric-ephemera merged 10 commits intomainfrom
limits

Conversation

@esoteric-ephemera
Copy link
Collaborator

@esoteric-ephemera esoteric-ephemera commented Mar 9, 2026

  • To avoid "URI too long" type errors and convey more meaningful info back to the user, raise an error if >9 elements are queried (max num from testing that works)
  • Remove dead code around molecules (unused resters + features that don't work because API endpoints haven't been deployed)
  • Modify find_structure to improve performance and shift compute to user

@codecov-commenter
Copy link

codecov-commenter commented Mar 9, 2026

Codecov Report

❌ Patch coverage is 93.93939% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 85.68%. Comparing base (2d0ffff) to head (e45342f).
⚠️ Report is 11 commits behind head on main.

Files with missing lines Patch % Lines
mp_api/client/routes/materials/materials.py 95.23% 1 Missing ⚠️
mp_api/client/routes/molecules/summary.py 50.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1068       +/-   ##
===========================================
+ Coverage   71.96%   85.68%   +13.71%     
===========================================
  Files          55       47        -8     
  Lines        3082     2675      -407     
===========================================
+ Hits         2218     2292       +74     
+ Misses        864      383      -481     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@esoteric-ephemera esoteric-ephemera changed the title Raise error on too many elements More housekeeping Mar 9, 2026
@esoteric-ephemera esoteric-ephemera changed the title More housekeeping Housekeeping: Remove unused molecules endpoints + others Mar 10, 2026
@esoteric-ephemera esoteric-ephemera merged commit 5994c58 into main Mar 10, 2026
3 checks passed
@esoteric-ephemera esoteric-ephemera deleted the limits branch March 10, 2026 23:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants